import request from '@/utils/request'

export default {
  //
  orderList(data) {
    return request({
      url: '/order/page',
      method: 'post',
      data
    })
  },
  orderUploadFile(data) {
    return request({
      url: '/order/export',
      method: 'post',
      data,
      responseType:'blob'
      
    })
  },
    getSalesOrderDetail(salesOrderId) {
        return request({
          url: `/order/invoice/${salesOrderId}`,
          method: 'get',
        })
      },
         //订单日志
    getOrderLogDetail(salesOrderId) {
      return request({
        url: `/order/log/${salesOrderId}`,
        method: 'get',
      })
    },
    saveOrderReFund(data) {
      return request({
        url: '/order/refund',
        method: 'post',
        data
      })
    },
    saveOrderCancel(data) {
      return request({
        url: '/order/cancel',
        method: 'post',
        data
      })
    },
    saveOrderReceive(data) {
      return request({
        url: '/order/confirm/paid',
        method: 'post',
        data
      })
    },
    saveOrderTicket(data) {
      return request({
        url: '/order/confirm/invoice',
        method: 'post',
        data
      })
    },
  





}
